home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / rpc / rpcInt.h < prev    next >
C/C++ Source or Header  |  1991-02-12  |  2KB  |  70 lines

  1. /*
  2.  * rpcInt.h --
  3.  *
  4.  *    Internal declarations for the RPC module.  This has data
  5.  *    structures that are common to both the client and server
  6.  *    parts of the RPC system.
  7.  *
  8.  * Copyright 1986 Regents of the University of California
  9.  * All rights reserved.
  10.  *
  11.  *
  12.  * $Header: /sprite/src/kernel/rpc/RCS/rpcInt.h,v 9.4 91/02/12 14:15:42 jhh Exp $ SPRITE (Berkeley)
  13.  */
  14.  
  15. #ifndef _RPCINT
  16. #define _RPCINT
  17.  
  18. #ifdef KERNEL
  19. #include <rpc.h>
  20. #include <rpcPacket.h>
  21. #include <rpcTypes.h>
  22. #else
  23. #include <kernel/rpc.h>
  24. #include <kernel/rpcPacket.h>
  25. #include <kernel/rpcTypes.h>
  26. #endif /* KERNEL */
  27.  
  28. /*
  29.  * A general On/Off switch set via the Sys_Stats SYS_RPC_ENABLE_SERVICE command.
  30.  */
  31. extern Boolean rpcServiceEnabled;
  32.  
  33. /*
  34.  * A boot ID for this host.  This is initialized one time when we boot.
  35.  * It is included in the header of out-going messages, and
  36.  * other machines detect that we have re-booted when this changes.
  37.  */
  38. extern unsigned int rpcBootID;
  39.  
  40. /*
  41.  * A set of masks used by the client and server dispatcher to see
  42.  * if a fragmented message is complete.
  43.  */
  44. extern unsigned int rpcCompleteMask[];
  45.  
  46. extern void RpcScatter _ARGS_((register RpcHdr *rpcHdrPtr, RpcBufferSet *bufferPtr));
  47. extern ReturnStatus RpcSanityCheck _ARGS_((int length, 
  48.             Net_ScatterGather *scatterPtr, int packetLength));
  49.  
  50.  
  51. /*
  52.  * Byte-swap routines and variables.
  53.  */
  54. extern    Boolean    rpcTestByteSwap;
  55.  
  56. extern Boolean RpcByteSwapInComing _ARGS_((RpcHdr *rpcHdrPtr, 
  57.     int packetLength));
  58. extern int RpcSetTestByteSwap _ARGS_((void));
  59. extern int RpcUnsetTestByteSwap _ARGS_((void));
  60. extern void RpcPrintHdr _ARGS_((RpcHdr *rpcHdrPtr));
  61. extern void RpcByteSwapBuffer _ARGS_((register int *bufferPtr, register int numInts));
  62. extern void RpcCrashCallBack _ARGS_((int clientID, ClientData data));
  63. extern void RpcResetNoServers _ARGS_((int value)); 
  64. extern void RpcDaemonWait _ARGS_((Timer_QueueElement *queueEntryPtr)); 
  65. extern void RpcDaemonWakeup _ARGS_((Timer_Ticks time, ClientData data));
  66. extern void RpcBufferInit _ARGS_((RpcHdr *rpcHdrPtr, RpcBufferSet *bufferSetPtr, int channel, int serverHint));
  67.  
  68.  
  69. #endif /* _RPCINT */
  70.